import fetch from '@/axios/fetch'

export function login (obj) {
  return fetch({
    url: '/api/auth/login',
    method: 'post',
    data: obj
  })
}

export function getPermission () {
  return fetch({
    url: '/api/auth/getPermission',
    method: 'get'
  })
}

export function getPublicKey () {
  return fetch({
    url: '/api/auth/getPublicKey',
    method: 'get'
  })
}